<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="__PUBLIC__/assets/ico/favicon.ico">
    <title>{$Think.config.web_name}</title>
      <link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
      <script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
      <script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
      <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
      <script type="text/javascript">
          $(document).ready(function() {

              // 创建两个变量，一个数组中的月和日的名称
              var monthNames = [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ];
              var dayNames= ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]

              // 创建一个对象newDate（）
              var newDate = new Date();
              // 提取当前的日期从日期对象
              newDate.setDate(newDate.getDate());
              //输出的日子，日期，月和年
              $('#Date').html(newDate.getFullYear()+'年' + " " + monthNames[newDate.getMonth()] + ' ' + newDate.getDate()+'号' + ' ' + dayNames[newDate.getDay()]);

              setInterval( function() {
                  // 创建一个对象，并提取newDate（）在访问者的当前时间的秒
                  var seconds = new Date().getSeconds();
                  //添加前导零秒值
                  $("#sec").html(( seconds < 10 ? "0" : "" ) + seconds);
              },1000);

              setInterval( function() {
                  // 创建一个对象，并提取newDate（）在访问者的当前时间的分钟
                  var minutes = new Date().getMinutes();
                  // 添加前导零的分钟值
                  $("#min").html(( minutes < 10 ? "0" : "" ) + minutes);
              },1000);

              setInterval( function() {
                  // 创建一个对象，并提取newDate（）在访问者的当前时间的小时
                  var hours = new Date().getHours();
                  // 添加前导零的小时值
                  $("#hours").html(( hours < 10 ? "0" : "" ) + hours);
              }, 1000);

          });
      </script>

      <style type="text/css">
       .content{
           padding: 20px 15px;
           background: #f9f9f9;
       }
       .box{
           position: relative;
           background: #ffffff;
           border-top: 2px solid #c1c1c1;
           margin-bottom: 20px;
           -webkit-border-radius: 3px;
           -moz-border-radius: 3px;
           border-radius: 3px;
           width: 100%;
           box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
       }
       .box.box-warning {
           border-top-color: #f39c12;
       }
       .box-body {
           min-height: 20px;
           padding: 19px;
           margin-bottom: 20px;
           border: 1px solid #e3e3e3;
           border-radius: 4px;
           -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
           box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
       }
       .box-title{
           padding: 10px 0px 10px 10px;
           margin: 0;
       }
       .box.box-danger {
           border-top-color: #F39C14;
       }

       /* clock */
       .clock{width:340px;}
       .clock #Date{ Arial, Helvetica, sans-serif;font-size:22px;text-align:center;}
       /*.clock ul{width:800px;margin:0 auto;padding:0px;list-style:none;text-align:center;}*/
       .clock ul li{display:inline;font-size:20px;text-align:center;}
       #point{position:relative;-moz-animation:mymove 1s ease infinite;-webkit-animation:mymove 1s ease infinite;padding-left:10px;padding-right:10px;}
       @-webkit-keyframes mymove{
           0%{opacity:1.0;text-shadow:0 0 20px #00c6ff;}
           50%{opacity:0;text-shadow:none;}
           100%{opacity:1.0;text-shadow:0 0 20px #00c6ff;}
       }


       @-moz-keyframes mymove{
           0%{opacity:1.0;text-shadow:0 0 20px #00c6ff;}
           50%{opacity:0;text-shadow:none;}
           100%{opacity:1.0;text-shadow:0 0 20px #00c6ff;}
       }

      </style>
  </head>

  <body style="background-color: #f9f9f9">
<div class="content">
  <!--/////////////-->
  <div class="row">
      <div style="float: left;width: 100%"  class="col-md-6">
          <div class="box box-warning">
              <div class="box-header">
                  <h3 class="box-title">用户信息</h3>
              </div>
              <!-- /.box-header -->
              <div class="box-body">


                  <div class="well">
                      <span style="display: inline-block;"><h5>你好：{$user[0]['username']}</h5>
                      <h5>角色：{$user[0]['role'][0]['remark']}</h5>
                      <h5>登陆时间：{$user[0]['logintime']|date="Y-m-d   H:i:s",###}</h5>
                      <h5>登陆IP：{$user[0]['loginip']}</h5>
                      </span>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <span style="display: inline-block;">
                           <div class="clock">
                               <h1></h1>
                               <div id="Date"></div>

                               <ul style="margin-top: 21px;margin-left: 58px;">
                                   <li id="hours"> </li>
                                   <li id="point">:</li>
                                   <li id="min"> </li>
                                   <li id="point">:</li>
                                   <li id="sec"> </li>
                               </ul>

                           </div>
                      </span>

                  </div>



              </div>
          </div>
      </div>
      <div style="float: left"  class="col-md-6">
          <div class="box box-warning">
              <div class="box-header">
                  <h3 class="box-title">开发团队</h3>
              </div>
              <!-- /.box-header -->
              <div class="box-body">


                  <div class="well">

                      <h4>团队信息</h4>

                      新疆卡尔罗软件开发有限公司 &nbsp; 建立时间:
                      20150603 &nbsp;<a href="http://www.okyan.com">关于我们</a>
                      <p></p>
                      <p><b>项目名称 : </b>古勒巴格镇中心校</p>
                      <p><b>联系电话 : </b>0991 5858588</p>
                      <p><b>XXX : </b>XXXX</p>




                  </div>

                  <div class="well">

                      <h4>帮助</h4>
                      QQ号：244379090 <br>
                      Email：244379090@qq.com<br>
                      技术：木扎派尔老师
                  </div>


              </div>
          </div>
      </div>

      <div style="float: left" class="col-md-6">
          <div class="box box-danger">
              <div class="box-header">
                  <h3 class="box-title">网站信息</h3>
              </div>
              <!-- /.box-header -->
              <div class="box-body">


                  <div class="row ">


                      <div class="col-md-3">

                          <img style="width: 100%" src="__UPLOAD_PIC__/{$Think.config.school_master_pic}" alt="">
                      </div>


                      <div style="float: left;width: 240px" class="col-md-6" >

                          <h1></h1>



                          <p>域名: www.gulbagh.com </p>
                          <p>名称: {$Think.config.web_name} </p>

                          <p>邮箱: 244379090@qq.com </p>

                          <p>注册时间: 2015-08-17 13:08:51 </p>

                          <!--end span8-->


                      </div>


                  </div>




                  <div class="row">

                      <div class=" col-xs-6">
                          <!-- small box -->
                          <div class="small-box bg-green">
                              <div class="inner">
                                  <h3>
                                      {$count_content}篇
                                  </h3>

                                  <p>
                                      已添加内容
                                  </p>
                              </div>
                              <div class="icon">
                                  <i class="ion ion-stats-bars"></i>
                              </div>
                              <a href="{:U('Admin/Content/index')}">
                                  所有文章 <i class="fa fa-arrow-circle-right"></i>
                              </a>
                          </div>
                      </div>
                      <!-- ./col -->

                      <div class=" col-xs-6">
                          <!-- small box -->
                          <div class="small-box bg-yellow">
                              <div class="inner">
                                  <h3>
                                      {$count_admin}名
                                  </h3>

                                  <p>
                                      已注册用户
                                  </p>
                              </div>
                              <div class="icon">
                                  <i class="ion ion-person-add"></i>
                              </div>
                              <div class="icon">
                                  <i class="ion ion-person-add"></i>
                              </div>
                              <div class="icon">
                                  <i class="ion ion-person-add"></i>
                              </div>
                              <a href="{:U('Admin/Member/index')}" class="small-box-footer">
                                  所有用户 <i class="fa fa-arrow-circle-right"></i>
                              </a>
                          </div>
                      </div>
                      <!-- ./col -->

                  </div>


              </div>
          </div>
      </div>
  </div>
  <!---->

    <!---->
</div>

  </body>
</html>
